package com.huang.aop;

import org.springframework.stereotype.Component;

@Component
public class MyCalculate {

	public int add(int a, int b) {
		System.out.println("执行方法A+B");
		return a + b;
	}

	public int sub(int a, int b) {
		System.out.println("执行方法A-B");
		return a - b;
	}

	public int mul(int a, int b) {
		System.out.println("执行方法AXB");
		return a * b;
	}

	public int div(int a, int b) {
		System.out.println("执行方法A/B");
		return a / b;
	}

}
